package cn.sciento.farm.devicemanager.api.jsonrpc;

import cn.sciento.farm.devicemanager.dao.entity.DevStrategy;
import cn.sciento.farm.devicemanager.dao.model.PageConditionQuery;
import cn.sciento.farm.devicemanager.dao.model.ResponseMessage;
import com.googlecode.jsonrpc4j.JsonRpcMethod;
import com.googlecode.jsonrpc4j.JsonRpcService;

/**
 * 策略
 */
@JsonRpcService("rpc/hardware.strategy")
public interface StrategyJsonApi {

    ResponseMessage create(DevStrategy strategy);

    ResponseMessage update(DevStrategy strategy);

    ResponseMessage  delete(Long id);

    ResponseMessage list(Long controllerId) ;

    ResponseMessage get(Long id);

    @JsonRpcMethod("get_strategy_log")
    ResponseMessage getStrategyLog(PageConditionQuery data);
}
